﻿using leaf.Base;
using System.Web.Mvc;

namespace leaf.Controllers
{
    /// <summary>
    /// 页面
    /// </summary>
    public class PagesController : Controller
    {
        /// <summary>
        /// 微信号信息获取 嵌入回调地址 外壳
        /// </summary>
        /// <returns></returns>
        public ActionResult BindInfo_Befor()
        {
            string uri = Global.RedirectUri("http%3a%2f%2fwww.antennababy.club%2fPages%2fBindInfo");
            return Redirect(uri);
        }

        /// <summary>
        /// 绑定患者信息页面
        /// </summary>
        /// <returns></returns>
        public ActionResult BindInfo()
        {
            Global.log.Debug("BindInfo 回调成功");
            string openId = BaseSupport.GetWXUserAccessToken(Request)?.Openid;
            ViewData["wxOpenId"] = openId;

            return View();
        }

        /// <summary>
        /// 检验列表页面
        /// </summary>
        /// <returns></returns>
        public ActionResult LisReportList()
        {
            return View();
        }

        /// <summary>
        /// 检验报告详细信息页面
        /// </summary>
        /// <returns></returns>
        public ActionResult LisReportDetails()
        {
            return View();
        }

        /// <summary>
        /// 检查报告详细信息页面
        /// </summary>
        /// <returns></returns>
        public ActionResult PacsReportDetails()
        {
            return View();
        }

        /// <summary>
        /// 检查列表页面
        /// </summary>
        /// <returns></returns>
        public ActionResult PacsReportList()
        {
            return View();
        }

        /// <summary>
        /// 费用支付页面
        /// </summary>
        /// <returns></returns>
        public ActionResult PayCost()
        {
            return View();
        }

        /// <summary>
        /// 使用记录页面：绑定记录/挂号记录/预约记录
        /// </summary>
        /// <returns></returns>
        public ActionResult PatientInfoShow()
        {
            return View();
        }

        /// <summary>
        /// 挂号页面
        /// </summary>
        /// <returns></returns>
        public ActionResult Register()
        {
            return View();
        }

        /// <summary>
        /// 预约挂号页面
        /// </summary>
        /// <returns></returns>
        public ActionResult AppointRegister()
        {
            return View();
        }

        /*-------------------------------------------------------------*/

        //绑定患者信息按钮调用
        public bool BindInfo_Click()
        {
            //Task  调用某个方法 传值 这个方法需要告诉我传值绑定是否成功
            //Task wxId、身份号码、姓名、性别、民族、生日、电话号码、地址
            return false;
        }
    }
}